<?php

namespace AppVue\Models;

use Illuminate\Database\Eloquent\Model;


/**
 * AppVue\Models\Record
 *
 * @property int $id
 * @property string $name
 * @property string $serial_number
 * @property mixed $images
 * @property string $common
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereCommon($value)
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereCreatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereImages($value)
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereName($value)
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereSerialNumber($value)
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property string $sex
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereSex($value)
 * @property int $parent
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereParent($value)
 * @property string $date
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereDate($value)
 * @property string $description
 * @method static \Illuminate\Database\Query\Builder|\AppVue\Models\Record whereDescription($value)
 * @property-read \AppVue\Models\RecordChild $child
 */
class Record extends Model
{
    public function child() {
        return $this->belongsTo(RecordChild::class, 'id', 'records_id');
    }
}
